package com.gg.controller;

import cn.hutool.core.util.IdUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: YDYX
 * @Date: 2022/1/11 - 01 - 11 - 10:48
 * @Description: com.gg.controller
 * @version: 1.0
 */
@RestController
public class TestController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/payment/{id}")
    public String getPayment(@PathVariable("id") Integer id){
        return "这是支付中心****"+ serverPort + "id是"+ id +"***"+ IdUtil.simpleUUID();

    }
}
